/*
 * @Author: zjf
 * @Date: 2023-11-29 21:36:15
 * @LastEditors: zjf
 * @LastEditTime: 2023-12-03 15:53:13
 * @Description: 工程建设许可阶段3 建设工程规划许可证核发10
 */
// 接口地址
export const api = window.$crud("construction/planning/license");
// 阶段code
export const stageCode = 3;
// 业务code
export const businessCode = 10;

export const formColmuns = [
  {
    label: "项目名称",
    prop: "projectName",
    dataType: "input",
    isNotAutoWrap: true,
    disabled: true,
  },
  // {
  //   label: "项目编码",
  //   prop: "projectCode",
  //   dataType: "input",
  //   isNotAutoWrap: true,
  //   disabled: true,
  // },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "文号",
    prop: "documentNumber",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "核发时间",
    prop: "approvalTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "工程类别",
    prop: "projectType",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "长度",
    prop: "constructionLength",
    minWidth: 140,
    dataType: "input",
    append: "米",
    isNotAutoWrap: true,
  },
  {
    label: "宽度",
    prop: "constructionWidth",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "米",
  },
  {
    label: "总建筑面积",
    prop: "buildArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "平米",
  },
  {
    label: "计容面积",
    prop: "buildCapacityArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "平米",
  },
  {
    label: "道路面积(平米)",
    prop: "consArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "平米",
  },
];

export const tableColmuns = [
  {
    label: "项目名称",
    prop: "projectName",
    dataType: "input",
    isNotAutoWrap: true,
  },
  // {
  //   label: "项目阶段码",
  //   prop: "stage_code",
  //   minWidth: 140,
  //   dataType: "input",
  //   isNotAutoWrap: true,
  // },
  // {
  //   label: "业务代码",
  //   prop: "business_code",
  //   minWidth: 140,
  //   dataType: "input",
  //   isNotAutoWrap: true,
  // },
  // {
  //   label: "阶段进展",
  //   prop: "stage_progress",
  //   minWidth: 140,
  //   dataType: "input",
  //   isNotAutoWrap: true,
  // },
  {
    label: "文号",
    prop: "documentNumber",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "核发时间",
    prop: "approvalTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "工程类别",
    prop: "projectType",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "长度(米)",
    prop: "constructionLength",
    minWidth: 140,
    dataType: "input",
    append: "米",
    isNotAutoWrap: true,
  },
  {
    label: "宽度(米)",
    prop: "constructionWidth",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "米",
  },
  {
    label: "总建筑面积(平米)",
    prop: "buildArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "平米",
  },
  {
    label: "计容面积(平米)",
    prop: "buildCapacityArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "平米",
  },
  {
    label: "道路面积(平米)",
    prop: "consArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "平米",
  },
  {
    label: "更新时间",
    prop: "modifyTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd HH:mm:ss",
  },
];

export const formData = {
  projectName: "", // 项目名称
  // projectCode: "", // 项目编码
  // stageProgress: "", // 阶段进展

  documentNumber: "", // 文号
  approvalTime: "", // 核发时间
  projectType: "", // 工程类别
  constructionLength: "", // 长度
  constructionWidth: "", // 宽度
  buildArea: "", // 总建筑面积
  buildCapacityArea: "", // 计容面积
  consArea: "", // 道路面积
};

export const rules = {};

let config = {
  api: api,
  stageCode: stageCode,
  businessCode: businessCode,
  formColmuns: formColmuns,
  tableColmuns: tableColmuns,
  formData: formData,
  rules: rules,
};

export default config;
